package xcmg.device.dao.mapper.returnMaterial;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.borrowMaterial.BorrowMaterialDO;
import xcmg.device.dao.entity.returnMaterial.ReturnMaterialDO;

import java.util.List;

@Mapper
public interface ReturnMaterialMapper {

    boolean insert(ReturnMaterialDO returnMaterialDO);

    boolean deleteById(ReturnMaterialDO returnMaterialDO);

    boolean updateById(ReturnMaterialDO returnMaterialDO);

    List<ReturnMaterialDO> selectList(ReturnMaterialDO returnMaterialDO);

    ReturnMaterialDO selectById(@Param("id") String id);

    boolean batchDelete(List<ReturnMaterialDO> returnMaterialDOList);

    boolean batchInsert(List<ReturnMaterialDO> returnMaterialDOList);

    List<ReturnMaterialDO> selectBatchByIds(List<String> ids);

    boolean batchUpdate(List<ReturnMaterialDO> returnMaterialDOList);

    boolean updateByCode(ReturnMaterialDO returnMaterialDO);
}
